home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
emulator
/
bsvc-1.000
/
bsvc-1
/
bsvc-1.0.4
/
src
/
Sim68000
/
Makefile
< prev
Wrap
Makefile
|
1995-07-26
|
2KB
|
84 lines
###############################################################################
# $Header:$
###############################################################################
#
# Makefile - Sim68000 Makefile
#
# Bradford W. Mott
# July 3,1994
#
###############################################################################
# $Log:$
###############################################################################
## List of subdirectories that need to be built
SUBDIRS = cpu devices loader
PROGRAM = Sim68000
PROGRAM_LIBS = ./cpu/libcpu.a ./devices/libdevices.a \
./loader/libloader.a ../Framework/libfw.a
## List of object files that need to be made
OBJS = main.o
all: subdirectories $(PROGRAM)
$(PROGRAM): $(OBJS)
$(CC) $(CFLAGS) -o $(PROGRAM) $(OBJS) $(PROGRAM_LIBS) $(LIBS)
subdirectories:
@for dir in $(SUBDIRS); \
do \
echo ""; \
echo "------ Building: $(PROGRAM)/$$dir"; \
cd $$dir; \
make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" all; \
if [ $$? -eq 0 ] ; \
then \
cd ..; \
else \
exit 1; \
fi \
done
install: $(PROGRAM)
@for dir in $(SUBDIRS); \
do \
echo ""; \
echo "------ Installing: $$dir"; \
cd $$dir; \
make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" install; \
if [ $$? -eq 0 ] ; \
then \
cd ..; \
else \
exit 1; \
fi \
done
$(INSTALL) $(PROGRAM) $(INSTALL_DIR)
$(STRIP) $(INSTALL_DIR)/$(PROGRAM)
clean:
@for dir in $(SUBDIRS); \
do \
echo ""; \
echo "------ Cleaning: $(PROGRAM)/$$dir"; \
cd $$dir; \
make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" clean; \
if [ $$? -eq 0 ] ; \
then \
cd ..; \
else \
exit 1; \
fi \
done; \
rm -f *.o $(PROGRAM)
.SUFFIXES: .cxx .a
.cxx.o:
$(CC) $(INCLUDES) -c $(CPPFLAGS) $*.cxx